<?php
require_once 'application/library/db/gcDaoFactory.php';
require_once 'application/constant/daoConfig.php';
/**
 * login_services_LoginService
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */

class login_services_LoginService{

    private $objDaoFactory;

    public function __construct(){
        $this->objDaoFactory = gcDaoFactory::getInstance();
    }

    /**
     * 用户情报取得
     * pbGetUserInfo
     * @param   array   $arrParameter
     * @return  array   $arrReturn
     */
    public function pbCheckUserAccount($strUserId, $strPassword){
        $objDao = $this->objDaoFactory->createDao(daoConfig::T_BA_M_USER_DAO);
        $strResult = $objDao->pbGetUserInfoByType($strUserId, $strPassword);

        if (count($strResult) > 0) {
            return $strResult;
        } else {
            return false;
        }
    }

}

